package com.lc.afbx.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.lc.afbx.R;

import cn.trinea.android.common.util.ToastUtils;

/**
 * Created by Administrator on 2016/5/20.
 */
public class PolicyActivity extends BaseActivity implements View.OnClickListener {

    private RelativeLayout policy_mine_rl;
    private RelativeLayout policy_recommend_rl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_policy);

        policy_mine_rl = ((RelativeLayout) findViewById(R.id.policy_mine_rl));
        policy_recommend_rl = ((RelativeLayout) findViewById(R.id.policy_recommend_rl));

        policy_mine_rl.setOnClickListener(this);
        policy_recommend_rl.setOnClickListener(this);
    }


    @Override
    public void onClick(View view) {


        switch (view.getId()) {

            case R.id.back:
                finish();
                return;

            case R.id.policy_mine_rl:

                startActivity(new Intent(this, PolicyMineActivity.class));
                break;

            case R.id.policy_recommend_rl:

                startActivity(new Intent(this, PolicyIRecommendActivity.class));
                break;

        }


    }


}
